package com.brillilab.domain.enums.kit;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 引物类型:1-上游引物,2-下游引物,3-探针,4-上游引物2,5-下游引物2
 */
@Getter
@AllArgsConstructor
public enum PrimerAttrEnum {
	TYPE_1("上游引物", 1), TYPE_2("下游引物", 2), TYPE_3("探针", 3), TYPE_4("上游引物2", 4), TYPE_5("下游引物2", 5);
    public String name;
    private Integer type;

    public static String getName(Integer type) {
        for (PrimerAttrEnum p : PrimerAttrEnum.values()) {
            if (p.getType().equals(type)) {
                return p.name;
            }
        }
        return null;
    }
}
